#include "Stack.h"
#include"Queue.h"

void Test()
{
	ST st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPrint(&st);
	StackPop(&st);
	StackPop(&st);
	StackPrint(&st);
	StackPop(&st);
	StackPop(&st);
	StackPop(&st);
	StackPrint(&st);
}
void Test1()
{
	ST st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPrint(&st);
	printf("%d", Stacktop(&st));

}

void TestQueue()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePrint(&q);
	QueuePop(&q);
	QueuePrint(&q);
}

int main()
{
	TestQueue();
	return 0;
}